package com.blog.dao;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;

@ContextConfiguration(locations = "classpath:applicationContext.xml")
public class UserDAOTest2 extends AbstractJUnit4SpringContextTests{
	
	/*
	@Autowired
	private UserDAO userDAO;
	
	@Test
	public void testAdd() {
		User user = new User();
		User user2 = userDAO.store(user);
		System.out.println(user2.getId());
		userDAO.remove(user2);
	}
	*/
	
	@Autowired
	protected ApplicationContext applicationContext;
	
	@Test
	public void test() {
		System.out.println(applicationContext);
	}
	
	public void testFind() {
		
	}
	
	public void testDelete() {
		
	}
	
	public void testUpdate() {
		
	}
}
